package com.nulgame.bukkit.plugin.responsebuilder;

import com.nulgame.bukkit.plugin.resource.Resource;

public class AntiWordResponseBuilder extends GenericResponseBuilder {
	private String m_word;
	public AntiWordResponseBuilder(String responseFormat, String playerName, String message, String word) {
		super(responseFormat, playerName, message);
		m_word = word;
	}
	
	@Override
	public String toResponse() {
		String resposne = super.toResponse();
		resposne = resposne.replaceAll(Resource.WORD_VARIABLE, m_word);
		return resposne;
	}

}
